<template name="pass-box">
		
		<!-- 输入密码框 -->
		<view class="iptPass" v-if="ifshow">
			<view class="iptPass-box">
				<view class="iptPass-box-title">
					请输入密码
				</view>
				<view class="input-box">
					<view class="iptPass-box-inp">
						<input type="text" value="" password="true" v-model="pass"/>
					</view>
				</view>
				<view class="iptPass-box-bom">
					<view class="iptPass-box-bom-left" @click="clear">
						取消
					</view>
					<view class="iptPass-box-bom-right" @click="sure">
						确认
					</view>
				</view>
			</view>
		</view>
		
</template>

<script>
	export default {
		name: "pass-box",
		props:['ifshow'],
		data() {
			return {
				pass: '',
			};
		},
		methods: {
			clear(){
				this.$emit('chClear')
			},
			sure(){
				this.ifshow = false
			}
		}
	}
</script>

<style lang="less">
	.iptPass {
			background: rgba(0, 0, 0, 0.6);
			position: fixed;
			width: 100%;
			height: 100%;
			left: 0;
			top: 0;
			z-index: 1;
			.iptPass-box{
				width: 70%;
				position: fixed;
				left: 50%;
				top: 50%;
				background: #FFF;
				border-radius: 10upx;
				z-index: 99;
				transform: translate(-50%, -50%);
				.iptPass-box-title{
					text-align: center;
					font-size: 36upx;
					color: #333333;
					margin-top: 30upx;
				}
				.input-box{
					padding: 0 30upx;
					.iptPass-box-inp{
						border: 2upx solid #F6F6F6;
						border-radius: 6upx;
						margin-top: 40upx;
						height: 80upx;
						display: flex;
						align-items: center;
						width: 100%;
						input{
							width: 100%;
						}
					}
				}
				.iptPass-box-bom{
					margin-top: 20upx;
					display: flex;
					flex-direction: row;
					text-align: center;
					height: 90upx;
					border-top: 2upx solid #F6F6F6;
					.iptPass-box-bom-left{
						flex-grow: 1;
						font-size: 36upx;
						border-right: 2upx solid #F6F6F6;
						height: 100%;
						line-height: 90upx;
					}
					.iptPass-box-bom-right{
						flex-grow: 1;
						color: #1E59F5;
						font-size: 36upx;
						height: 100%;
						line-height: 90upx;
	
					}
				}
				
			}
		}

</style>
